package com.kaibes.module.message;

import java.math.BigInteger;
import java.time.LocalDateTime;

import com.kaibes.core.base.annotation.Description;

import lombok.Data;
/**
CREATE TABLE `message` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `title` varchar(32) NOT NULL,
  `content` text NOT NULL,
  `html` text NOT NULL,
  `from_id` integer DEFAULT NULL,
  `to_id` integer DEFAULT NULL,
  `append` text NOT NULL,
  `tag` varchar(32) NOT NULL,
  `read` tinyint NOT NULL DEFAULT '0',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `from_id` (`from_id`),
  KEY `to_id` (`to_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
 */
@Data
@Description("消息")
public class Message {

    @Description("ID")
    private BigInteger id;
    @Description("标题")
    private String title;
    @Description("内容")
    private String content;
    @Description("html")
    private String html;
    @Description("发送人")
    private Integer fromId;
    @Description("接收人")
    private Integer toId;
    @Description("附加数据")
    private String append;
    @Description("标签")
    private String tag;
    @Description("是否已读")
    private Boolean read;
    @Description("创建时间")
    private LocalDateTime createTime;
    
}
